package com.chaoXing.work3.work_3_2;

public class ConTest {
    public static void main(String[] args) {
        Test t=new Test(new CarPark());
        System.out.println(t+"花费了"+t.sum(50));
        Test t2=new Test(new Cinema());
        System.out.println(t2+"花费了"+t2.sum(100));

    }
}